package com.sl.au.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@Entity
@Table(name = "afterSaleOutHouseView")
public class AfterSaleOutHouseView extends Root {

	/**
	 * 派遣说明
	 */
	@Column(name = "sSendReason")
	private String sendReason;

	/**
	 * 开始时间
	 */
	@Column(name = "dStartTime")
	@Temporal(TemporalType.TIMESTAMP)
	private Date startTime;
	
	/**
	 * 结束时间
	 */
	@Column(name = "dEndTime")
	@Temporal(TemporalType.TIMESTAMP)
	private Date endTime;

	/**
	 * 是否接收 是：1 否：0
	 */
	@Column(name = "nIsReceived")
	private int isReceived;
	/**
	 * 是否完成
	 */
	@Column(name = "nIsFinish")
	private int isFinish;
	
	/*
	 * 派遣单状态：0未接收 ；1已接收；2 跟踪中；3待回访，4完成；
	 */
	@Column(name = "sOutState")
	private String outState;

	/**
	 * AfterSaleTicket_id
	 */
	@ManyToOne
	@JoinColumn(unique = false)
	private AfterSaleTicket afterSaleTicket;

	/**
	 * User_id
	 */
	@ManyToOne
	@JoinColumn(unique = false)
	private User user;

	

	/**
	 * 售后总结
	 */
	@Column(name = "sAfterSummary")
	private String afterSummary;

	/**
	 * 售后评价
	 */
	@Column(name = "sAssess")
	private String assess;

	/**
	 * 售后评价备注
	 */
	@Column(name = "sAssessMemo")
	private String assessMemo;
	
	/**附件个数 */
	@Transient
	private java.lang.Integer attachNumber;
	
	private java.lang.Integer number;

	public java.lang.Integer getNumber() {
		return number;
	}

	public void setNumber(java.lang.Integer number) {
		this.number = number;
	}

	public String getSendReason() {
		return sendReason;
	}

	public void setSendReason(String sendReason) {
		this.sendReason = sendReason;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public int getIsReceived() {
		return isReceived;
	}

	public void setIsReceived(int isReceived) {
		this.isReceived = isReceived;
	}

	public int getIsFinish() {
		return isFinish;
	}

	public void setIsFinish(int isFinish) {
		this.isFinish = isFinish;
	}

	public String getOutState() {
		return outState;
	}

	public void setOutState(String outState) {
		this.outState = outState;
	}

	public AfterSaleTicket getAfterSaleTicket() {
		return afterSaleTicket;
	}

	public void setAfterSaleTicket(AfterSaleTicket afterSaleTicket) {
		this.afterSaleTicket = afterSaleTicket;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getAfterSummary() {
		return afterSummary;
	}

	public void setAfterSummary(String afterSummary) {
		this.afterSummary = afterSummary;
	}

	public String getAssess() {
		return assess;
	}

	public void setAssess(String assess) {
		this.assess = assess;
	}

	public String getAssessMemo() {
		return assessMemo;
	}

	public void setAssessMemo(String assessMemo) {
		this.assessMemo = assessMemo;
	}

	public java.lang.Integer getAttachNumber() {
		return attachNumber;
	}

	public void setAttachNumber(java.lang.Integer attachNumber) {
		this.attachNumber = attachNumber;
	}
}
